import { useOffsetScrolling } from '@/utils/hooks'
import styles from './index.module.scss'
import cm from 'classnames'

const Index = props => {
  const { children, className, maskClass } = props
  useOffsetScrolling()
  return (
    <div className={cm(styles.mask, maskClass)}>
      <div className={cm(styles.content, className)}>{children}</div>
    </div>
  )
}

export default Index
